package org.example.projecttwo.entity.content;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 内容审核信息表
 * </p>
 *
 * @author nn
 * @since 2025-11-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("content_audit")
@Schema(name="ContentAudit对象", description="内容审核信息表")
public class ContentAudit implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "内容ID")
    @TableId(value = "content_id", type = IdType.ASSIGN_ID)
    private Long contentId;

    @Schema(description = "内容类型: 1=文章，2=新闻")
    @TableField("content_type")
    private Integer contentType;

    @Schema(description = "提交审核时间")
    @TableField("submit_audit_time")
    private LocalDateTime submitAuditTime;

    @Schema(description = "审核结束时间")
    @TableField("audit_end_time")
    private LocalDateTime auditEndTime;

    @Schema(description = "审核人ID")
    @TableField("audit_admin_id")
    private Long auditAdminId;

    @Schema(description = "审核拒绝原因")
    @TableField("reject_reason")
    private String rejectReason;


}